{template nheader.html}
<style>
.ds-review .commstar {
    width: 70px  !important;
    height: 14px;
    background: url({THEME_PATH}comment/images/star.png) 0 -14px repeat-x;
    position: relative;
    display: inline-block !important;
    overflow: hidden !important;
    zoom: 1;
}
.ds-review .commstar .active {
    background:url({THEME_PATH}comment/images/star.png) left top repeat-x !important
}
.ds-review .commstar a {
    width:20%;
    position:absolute;
    top:0;
    left:0;
    display:inline-block;
    height:20px
}
.ds-review .commstar .star1 {
    width:20%;
    z-index:9
}
.ds-review .commstar .star2 {
    width:40%;
    z-index:8
}
.ds-review .commstar .star3 {
    width:60%;
    z-index:7
}
.ds-review .commstar .star4 {
    width:80%;
    z-index:6
}
.ds-review .commstar .star5 {
    width:100%;
    z-index:5
}
</style>
<script type="text/javascript">
$(function() {
	{if $error}
	dr_tips('<font color=red>{$error.msg}</font>', 3);
	d_tips('{$error.error}', 0);
	{/if}
	
});
</script>
<form class="form-horizontal" action="" method="post" id="myform" name="myform">
    <div class="page-bar">
        <ul class="page-breadcrumb mylink">
            {$menu.link}
        </ul>
        <ul class="page-breadcrumb myname">
            {$menu.name}
        </ul>
        <div class="page-toolbar">
            <div class="btn-group pull-right">
                <button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {fc_lang('操作菜单')}
                    <i class="fa fa-angle-down"></i>
                </button>
                <ul class="dropdown-menu pull-right" role="menu">
                    {loop $menu.quick $t}
                    <li>
                        <a href="{$t.url}">{$t.icon} {$t.name}</a>
                    </li>
                    {/loop}
                    <li class="divider"> </li>
                    <li>
                        <a href="javascript:window.location.reload();">
                            <i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <h3 class="page-title">
        <small></small>
    </h3>
    <div class="portlet light bordered">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green sbold ">评论</span>
            </div>
        </div>
        <div class="portlet-body">
            <div class="form-body">

                <div class="form-group">
                    <label class="col-md-2 control-label">{fc_lang('主题')}：</label>
                    <div class="col-md-9">
                        <div class="form-control-static">{$data.title}</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label">{fc_lang('作者')}：</label>
                    <div class="col-md-9">
                        <div class="form-control-static">
                            {if $data.uid}<a href="javascript:;" onclick="dr_dialog_member('{$data.uid}')">{$data.author}</a>{else}{fc_lang('游客')}{/if}
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label">{fc_lang('时间')}：</label>
                    <div class="col-md-9">
                        <div class="form-control-static">
                            {dr_date($data.inputtime, NULL, 'red')}
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label">{fc_lang('地区')}：</label>
                    <div class="col-md-9">
                        <div class="form-control-static">
                            <a href="http://www.baidu.com/baidu?wd={$data.inputip}" target="_blank">{$ci->dip->address($data.inputip)}</a>
                        </div>
                    </div>
                </div>
                {if $is_review}
                {loop $review.option $i $t}
                {if $t.use}
                <div class="form-group">
                    <label class="col-md-2 control-label">{$t.name}：</label>
                    <div class="col-md-9">
                        <div class="form-control-static ds-review">
                            <span class="commstar">
                                {loop $review.value $ii $v}
                                <a class="star{$ii} {if $data['sort'.$i] == $ii} active{/if}" href="javascript:;" title="{$v.name}">&nbsp;</a>
                                {/loop}
                            </span>
                        </div>
                    </div>
                </div>
                {/if}
                {/loop}
                {/if}

                <div class="form-group">
                    <label class="col-md-2 control-label">{fc_lang('内容')}：</label>
                    <div class="col-md-9">
                        <textarea class="form-control" style="height:80px; width:99%;" name="post[content]">{$data.content}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label">{fc_lang('状态')}：</label>
                    <div class="col-md-9">
                        <div class="radio-list">
                            <label class="radio-inline"><input type="radio" name="post[status]" value="1" {if $data['status']}checked{/if} /> {fc_lang('已审核')}</label>
                            <label class="radio-inline"><input type="radio" name="post[status]" value="0" {if !$data['status']}checked{/if} /> {fc_lang('未审核')}</label>
                        </div>
                    </div>
                </div>
                {$myfield}

            </div>
        </div>
    </div>


    <div class="custom-alerts alert alert-danger fade in">
        <i class="fa-lg fa fa-warning"></i>
        {fc_lang('默认模板是: 核心目录/dayrui/templates/admin/%s.html，自定义模板是%s', 'comment_show', $tpl)}
    </div>

    <div class="myfooter">
        <div class="row">
            <div class="portlet-body form">
                <div class="form-body">
                    <div class="form-actions">
                        <div class="row">
                            <div class="col-md-12 text-center">
                                <button type="submit" class="btn green"> <i class="fa fa-save"></i> {fc_lang('保存')}</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>

{template nfooter.html}